import service from '@/utils/request'

const InfraredApi = {
  // ---------------红外探测器----------------
  addInfrared: function (data) {
    return service.post('infrared', data)
  },
  deleteInfrared: function (data) {
    return service.put('infrared/delete', data)
  },
  editInfrared: function (data) {
    return service.put('infrared', data)
  },
  listInfrared: function (data) {
    return service.get('infrared/page', {params: data })
  },
  getInfraredInfo: function (data) {
    return service.get('infrared', {params: data })
  },
}

export default InfraredApi
